package com.codefish.codefishseckill.sentinel;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * 限流相关配置属性
 *
 * @author codefish
 * @version 1.0
 * @date 2022/08/04 上午 10:34
 */

@Data
@ConfigurationProperties("codefish.sentinel")
public class LimitAccessProperty {
    /**
     * 限流关系映射 uri->每秒可访问次数
     */
    Map<String,Integer> rules;

    String name;

}
